﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HappyBa.Core.Data;
using Mnk.Library.Common.Models;

namespace HappyBa.Pages
{
    class UserTasks : IHasChildren
    {
        public User Entity{ get; set; }
        public IList<UIStatebleEntityBase> Items { get; set; }

        public IList<IHasChildren> Children
        {
            get
            {
                return Items.Select(x=>new NodeEntityAdapter(x))
                    .Cast<IHasChildren>()
                    .ToArray();
            }
        }
    }
}
